package com.java.builder;
//使用MealBuider来演示建造者模式
public class BuilderPatternDemo {
    public static void main(String[] args) {
            MealBuilder mealBuilder=new MealBuilder();

            Meal vegMeal=mealBuilder.propareNonVegMeal();
            System.out.println("Veg Meal");
            vegMeal.showItems();
            System.out.println("Total Cost"+vegMeal.getConst());

            Meal nonVegMeal=mealBuilder.propareNonVegMeal();
            System.out.println("\n\nNon-Veg Meal");
            nonVegMeal.showItems();
        System.out.println("Total Cost"+nonVegMeal.getConst());
    }
}
